package com.ctsi.auth.vcc.manager;

/**
 * @author zhangjw
 * @className UserAccountLockService
 * @description TODO
 * @date 2019/2/27 13:48
 **/
public interface UserAccountLockService {

    /**
     * 登陆用户锁定缓存KEY
     */
    String USERACCOUNT_LOCK_CACHE_NAME = "useraccountlockcachename";


    /**
     * 判断用户是否被临时锁定
     * @param userName
     * @return
     */
    boolean isLock(String userName);

    /**
     * 减去一次登陆次数
     * @param userName
     * @return
     */
    int minus(String userName);

    /**
     * 删除用户临时锁
     * @param userName
     */
    void removeLock(String userName);

}
